﻿using B.S.DataBase.MyProject.Domain;
using Microsoft.EntityFrameworkCore;

namespace B.S.DataBase.MyProject.Infrastructure
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class SDbContext : DbContext
    {
        public SDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<User> Users { get; set; }
       /// <summary>
       /// 角色
       /// </summary>
        public DbSet<Role> Roles { get; set; }
       /// <summary>
       /// 用户角色中间表
       /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }
       /// <summary>
       /// 菜单
       /// </summary>
        public DbSet<Menu> Menus { get; set; }
        /// <summary>
        /// 角色菜单中间表
        /// </summary>
        public DbSet<RoleMenuModel> RoleMenus { get; set; }
      /// <summary>
      /// 请假
      /// </summary>
        public DbSet<LeaveApplicationForm> QingJiass {  get; set; }
        /// <summary>
        /// 记录
        /// </summary>
        public DbSet<RecordModel> RecordModels { get; set; }




    }
}


